﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ServiceModel.Channels;
using System.ServiceModel;
//using VAdvantage.DataService;

namespace VAdvantage.DataUtil
{
	public class WCF
	{
        //public static DataService.DataServicesClient GetService()
        //{
        //    System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();

        //   // BindingElementCollection bs = binding.CreateBindingElements();
        //    //var prop = new HttpRequestMessageProperty();
        //    //prop.Headers.Add(HttpRequestHeader.AcceptEncoding);

            

        //    //Create a URI to serve as the base address
        //    Uri httpUrl = new Uri("http://localhost:8090/MyService/SimpleCalculator");
        //    //Create ServiceHost











        //    binding.MaxReceivedMessageSize = 2147483647; // int's max size
        //    binding.MaxBufferSize = 2147483647; // int's max size
        //    System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, "../DataServices.svc"));
        //    try
        //    {
        //        return new DataService.DataServicesClient(binding, address);
        //    }
        //    catch (Exception e)
        //    {

        //    }
         //   return null;
       // }

        private void cc()
        {

        
        

        }

	}
}
